package com.ruoyi.travel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.travel.mapper.ScenicIntroMapper;
import com.ruoyi.travel.domain.ScenicIntro;
import com.ruoyi.travel.service.IScenicIntroService;

/**
 * 景点详细介绍Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-06
 */
@Service
public class ScenicIntroServiceImpl implements IScenicIntroService 
{
    @Autowired
    private ScenicIntroMapper scenicIntroMapper;

    /**
     * 查询景点详细介绍
     * 
     * @param id 景点详细介绍主键
     * @return 景点详细介绍
     */
    @Override
    public ScenicIntro selectScenicIntroById(Long id)
    {
        return scenicIntroMapper.selectScenicIntroById(id);
    }

    /**
     * 查询景点详细介绍列表
     * 
     * @param scenicIntro 景点详细介绍
     * @return 景点详细介绍
     */
    @Override
    public List<ScenicIntro> selectScenicIntroList(ScenicIntro scenicIntro)
    {
        return scenicIntroMapper.selectScenicIntroList(scenicIntro);
    }

    /**
     * 新增景点详细介绍
     * 
     * @param scenicIntro 景点详细介绍
     * @return 结果
     */
    @Override
    public int insertScenicIntro(ScenicIntro scenicIntro)
    {
        return scenicIntroMapper.insertScenicIntro(scenicIntro);
    }

    /**
     * 修改景点详细介绍
     * 
     * @param scenicIntro 景点详细介绍
     * @return 结果
     */
    @Override
    public int updateScenicIntro(ScenicIntro scenicIntro)
    {
        return scenicIntroMapper.updateScenicIntro(scenicIntro);
    }

    /**
     * 批量删除景点详细介绍
     * 
     * @param ids 需要删除的景点详细介绍主键
     * @return 结果
     */
    @Override
    public int deleteScenicIntroByIds(Long[] ids)
    {
        return scenicIntroMapper.deleteScenicIntroByIds(ids);
    }

    /**
     * 删除景点详细介绍信息
     * 
     * @param id 景点详细介绍主键
     * @return 结果
     */
    @Override
    public int deleteScenicIntroById(Long id)
    {
        return scenicIntroMapper.deleteScenicIntroById(id);
    }
}
